func removePalindromeSub(s string) int {
    if len(s) == 0 {
        return 0
    }
    if s == Reverse(s) {
        return 1
    }
    return 2
} 

func Reverse(s string) string {
    r := []rune(s)
    for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
        r[i], r[j] = r[j], r[i]
    }
    return string(r)
}